package cn.sunlelin.educationserver.mapper;

import cn.sunlelin.educationserver.entity.Discuss;

import java.util.List;
import java.util.Map;

public interface DiscussMapper {
    public void createDiscuss(Discuss discuss);
    public List<Map<String,Object>> selectDiscussByCourseId(Integer courseId);
    public List<Map<String,Object>> selectDiscussByUserId(Integer UserId);
    public Map<String,Object> selectDiscussById(Integer discussId);

    public void addBrowseNum(Integer discussId);
    public void addReplyNum(Integer discussId);
    public void minusReplyNum(Integer discussId);
    public void deleteDiscuss(Discuss discuss);
}
